public class EnoughtReduct extends CutStrategy{
    private double _line;
    private double _reduction;
    public EnoughtReduct(Sale sale, double line, double reduction) {
        super(sale);
        _line = line;
        _reduction = reduction;
    }
    @Override
    public double totalCost() {
        double cost = super.totalCost();
        return cost >= _line ? cost - _reduction : cost;
    }
}
